package com.example.backupgeo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVO {

    private static final long serialVersionUID = 1L;
    private String userId;
    private String userName;
    private String password;
    private String userRealName;
    private String userImg;
    private int age;
//    @ApiModelProperty(dataType = "interests",required = true,value = "用户兴趣爱好对象")
//    private List<Interests> interests;
    private String nickname;
    private String userMobile;
    private String userSex;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date userBirth;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date userRegtime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date userModtime ;
    private String userEmail;
    private String token;
    private String role;

    @Override
    public String toString() {
        return "User [userId=" + userId +
                ", userName=" + userName +
                ", password=" + password +
                ", age=" + age +
//                ", interests=" + interests +
                ", author=" + "]";
    }

}
